<script type="text/javascript">
	jQuery(function($) { $("ul.jt-tabs").tabs("div.jt-panes > div"); });
</script>

<form action="" method="post">

	<ul class="jt-tabs"><?
	
		foreach($DATA['langs'] as $lang) {
			?><li><a href="#<?=$lang['text']?>"><?=$lang['assoc']?></a></li><? 
		} 
		
	?></ul>
	
	<div class="jt-panes">
	
		<? $t = true; 
			foreach($DATA['langs'] as $lang) { $l = $lang['text'];
	
			?><div class="jt-pane" style="<?=$t ? "display:block" : ""?>">

			<p><label>Form caption<br />
				<span class="description">The <strong>{form}</strong> tag will be replaced with the form</span><br />
				<textarea name="caption[<?=$l?>]" class="wide" ><?=dat('settings', 'data', $l, 'caption')?></textarea>
			</label></p>


			<p><label>Form “Send” button caption
				<input type="text" class="wide" name="form_send[<?=$l?>]" value="<?=hdat('settings', 'data', $l, 'form_send')?>" />
			</label></p>

			</div><? 
		
		$t = false; } ?>
	
	</div>
	
	<fieldset>
		<legend> Form processing data </legend>
		
			<p><label>Form recipient's address
				<input type="text" name="contact" class="wide" value="<?=hdat('settings', 'contact')?>">
			</label></p>
		
			<p><label>Mail sender address
				<input type="text" name="from" class="wide" value="<?=hdat('settings', 'from')?>">
			</label></p>
		
			<p><label>Form check number
				<input type="text" name="check" class="wide" value="<?=hdat('settings', 'check')?>">
			</label></p>
		
	</fieldset>

	<p><input type="submit" name="editor_save" value="Save" /></p>

</form>
